package com.moli.iov.base.remote.impl;


import com.moli.iov.base.cache.mongodb.VehicleRegisterRecordService;
import com.moli.iov.base.model.dto.req.VehicleRegisterRecordDto;
import com.moli.iov.base.model.mongo.VehicleRegisterRecord;
import com.moli.iov.base.remote.IVehicleRegisterRecordRemoteService;
import com.moli.iov.model.dto.req.PageExtend;
import com.moli.iov.rest.RestResponse;
import com.moli.iov.util.JsonUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * tbox注册日志
 *
 * @author wanghualin
 * @date 2019 -12-12 17:33:47
 */
@Service(group = "${service.group}")
@Slf4j
public class VehicleRegisterRecordRemoteServiceImpl implements IVehicleRegisterRecordRemoteService {
    @Autowired
    private VehicleRegisterRecordService vehicleRegisterRecordService;

    @Override
    public RestResponse<PageExtend<VehicleRegisterRecord>> listVehicleRegisterRecord(VehicleRegisterRecordDto dto) {
      log.info("日志查询> T-Box安装日志-列表入参:{}", JsonUtils.toJson(dto));
        return vehicleRegisterRecordService.listVehicleRegisterRecord(dto);
    }
}
